package cn.dakaqi.entities;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Copyright: Copyright (c)2016
 * Company: 志愿者打卡器(www.dakaqi.cn)
 * 类名称: AppVersion <br>
 * 类描述: <br>
 *
 * @author: ChunYang.Zhang
 * @since: 2016/8/3 14:42
 * @version: 1.0.0
 */
@Entity

@Table(name = "U_APP_VERSION")
public class AppVersion implements Serializable
{

    private static final long serialVersionUID = -2054701833307066232L;
    private int id;
    private int type;
    private int code;
    private String url;
    private Date createTime;
    private String remark;
    private int status;
    private String client;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "VERSIONID")
    public int getId()
    {
        return id;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    @Column(name = "APPTYPE")
    public int getType()
    {
        return type;
    }

    public void setType(int type)
    {
        this.type = type;
    }

    @Column(name = "TYPENUMBER")
    public int getCode()
    {
        return code;
    }

    public void setCode(int code)
    {
        this.code = code;
    }
    @Column(name = "URL")
    public String getUrl()
    {
        return url;
    }

    public void setUrl(String url)
    {
        this.url = url;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08:00")
    @Column(name = "CREATETIME")
    public Date getCreateTime()
    {
        return createTime;
    }

    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

    @Column(name = "REMARK")
    public String getRemark()
    {
        return remark;
    }

    public void setRemark(String remark)
    {
        this.remark = remark;
    }

    @Column(name = "STATUS")
    public int getStatus()
    {
        return status;
    }

    public void setStatus(int status)
    {
        this.status = status;
    }

    @Column(name = "CLIENT")
    public String getClient()
    {
        return client;
    }

    public void setClient(String client)
    {
        this.client = client;
    }
}
